package com.zx.notification.consumer;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 通知服务消费端启动类
 */
@EnableScheduling
@SpringBootApplication
@EnableFeignClients(basePackages = "com.zx.feign.client")
@ComponentScan(basePackages = "com.zx")//指定组件扫描的基础包路径
@MapperScan(basePackages = "com.zx.notification.common.dao")
public class NotificationConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(NotificationConsumerApplication.class, args);
    }
}